<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>易买网 - 首页</title>
<link type="text/css" rel="stylesheet" href="<%=path %>/resources/css/style.css" />
<script type="text/javascript" src="<%=path %>/resources/scripts/function.js"></script>
</head>
<body>
<div id="header" class="wrap">
	<div id="logo"><img src="<%=path %>/resources/images/logo.gif" /></div>
	<div class="help"><a href="<%=path%>/main/shop" class="shopping">购物车</a><a href="<%=path%>/login">登录</a><a href="<%=path%>/main/register">注册</a><a href="<%=path%>/main/cancel">注销</a></div>
	<div class="navbar">
		<ul class="clearfix">
			<li class="current"><a href="<%=path%>/main/index">首页</a></li>
			<c:forEach var="indexCat" items="${categoriesIndex }">
			<li><a href="<%=path%>/main/${indexCat.id }/product">${indexCat.name }</a></li>
			</c:forEach>
		</ul>
	</div>
</div>
<div id="childNav">
	<div class="wrap">
		<ul class="clearfix">
		   <c:forEach var="seCat" items="${categoriesSeconde }">
		   <li><a href="<%=path%>/main/${seCat.id }/product">${seCat.name }</a></li>
		   </c:forEach>
		</ul>
	</div>
</div>
<div id="position" class="wrap">
	您现在的位置：<a href="<%=path %>/indexs">易买网</a> &gt; 阅读新闻
</div>
<div id="main" class="wrap">
	<div class="left-side">
		<div class="news-list">
			<h4>最新公告</h4>
			<ul>
				<li><a href="<%=path %>/noticeView" target="_blank">${notice.title }</a></li>
				
			</ul>
		</div>
		<div class="spacer"></div>
		<div class="news-list">
			<h4>新闻动态</h4>
			<ul>
				<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
				
			</ul>
		</div>
	</div>
	<div id="news" class="right-main">
		<h1>${notice.title }</h1>
		<div class="content">
			${notice.content }
		</div>
	</div>
	
	<div class="clear"></div>
</div>
<div id="footer">
	Copyright &copy; 2017 爱苗科技 All Rights Reserved. 皖ICP证000001号
</div>
</body>
</html>